<!-- 页面的交互 -->
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// import HelloWorld from './components/HelloWorld.vue'
</script>

<!-- 页面的内容 -->
<template>
  <!-- 
  <img alt="Vue logo" src="./assets/logo.png" />
  <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" /> 
  -->
  <div class="outer">
    <div class="inner">
      <el-menu class="el-menu-demo" mode="horizontal">
        <el-menu-item index="1"
          ><router-link :to="{ name: 'Home' }">首页</router-link></el-menu-item
        >
        <el-menu-item index="2"
          ><router-link :to="{ name: 'Tv' }">电视剧</router-link></el-menu-item
        >
        <el-menu-item index="3"
          ><router-link :to="{ name: 'Movie' }">电影</router-link></el-menu-item
        >
        <el-menu-item index="4"
          ><router-link :to="{ name: 'Sport' }">体育</router-link></el-menu-item
        >
        <el-menu-item index="5"
          ><router-link :to="{ name: 'Animation' }">动漫</router-link></el-menu-item
        >
      </el-menu>
      <!-- router-view相当于一个占位符，摆放的东西根据你当前的URL去匹配！ -->
      <router-view></router-view>
    </div>
  </div>
</template>

<!-- 页面的美化 -->
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}

.inner {
  width: 80%;
  margin: 0 auto;
}

a {
  text-decoration: none;
}
</style>
